import request from "@/api/request";


export default {
    getTableData(){
        return request({
            url: '/api/home/getTableData',
            method: 'get',
        });
    },
    getCountData(){
        return request({
            url: '/api/home/getCountData',
            method: 'get',
        });
    },
    getChartData(){
        return request({
            url: '/api/home/getChartData',
            method: 'get',
        });
    },
    getUserList(params) {
        return request({
            url: '/api/user/getUserList',
            method: 'get',
            data: params,
        })
    },
    addUser(params) {
        return request({
            url: '/api/user/addUser',
            method: 'post',
            data: params
        })
    },
    editUser(params) {
        return request({
            url: '/api/user/editUser',
            method: 'post',
            data: params
        })
    },
    deleteUser(params) { //删除用户
        return request({
            url: '/api/user/deleteUser',
            method: 'post',
            data: params
        })
    },
};